#include "LED.h"
//#include "sys.h"
void Open_LED(char LED_num)
{
	if(LED_num == 1) LED1 = 0;
	if(LED_num == 2) LED2 = 0;
	if(LED_num == 3) LED3 = 0;
	if(LED_num == 4) LED4 = 0;
	if(LED_num == 5) LED5 = 0;
	if(LED_num == 6) LED6 = 0;
	if(LED_num == 7) LED7 = 0;
	if(LED_num == 8) LED8 = 0;
	if(LED_num == 9) LED = 0x00;
}
	
void Close_LED(char LED_num)
{
	if(LED_num == 1) LED1 = 1;
	if(LED_num == 2) LED2 = 1;
	if(LED_num == 3) LED3 = 1;
	if(LED_num == 4) LED4 = 1;
	if(LED_num == 5) LED5 = 1;
	if(LED_num == 6) LED6 = 1;
	if(LED_num == 7) LED7 = 1;
	if(LED_num == 8) LED8 = 1;
	if(LED_num == 9) LED = 0xFF;

}
void Auto_LED(char LED_num, char ENA)
{
	if(ENA == 1) ENA =0;
	else ENA = 1;
	if(LED_num == 1) LED1 = ENA;
	if(LED_num == 2) LED2 = ENA;
	if(LED_num == 3) LED3 = ENA;
	if(LED_num == 4) LED4 = ENA;
	if(LED_num == 5) LED5 = ENA;
	if(LED_num == 6) LED6 = ENA;
	if(LED_num == 7) LED7 = ENA;
	if(LED_num == 8) LED8 = ENA;
	
}